import request from '@/utils/request'

export function getList(params?: any) {
  return request({
    url: '/zgyp-system/api/v1/users/page',
    method: 'get',
    params,
  })
}

export function details(params?: any) {
  return request({
    url: `/zgyp-system/api/v1/users/${params}/form`,
    method: 'get',
    // params,
  })
}

export function doEdit(data: any) {
  return request({
    url: `/zgyp-system/api/v1/users/${data.id}`,
    method: 'put',
    data,
  })
}
export function doAdd(data: any) {
  return request({
    url: '/zgyp-system/api/v1/users',
    method: 'post',
    data,
  })
}
export function doDelete(data: any) {
  return request({
    url: `/zgyp-system/api/v1/users/${data.ids}`,
    method: 'DELETE',
    data,
  })
}
